package com.link.linkupjavaweb.common;

/**
 * 系统常量类
 */
public class Constants {
    
    /**
     * Session中用户信息的key
     */
    public static final String SESSION_USER = "session_user";
    
    /**
     * Session中管理员信息的key
     */
    public static final String SESSION_ADMIN = "session_admin";
    
    /**
     * 账号格式后缀
     */
    public static final String ACCOUNT_SUFFIX = "@Link.com";
    
    /**
     * 默认头像路径
     */
    public static final String DEFAULT_AVATAR = "/static/images/default-avatar.png";
    
    /**
     * 头像上传路径
     */
    public static final String AVATAR_UPLOAD_PATH = "static/uploads/avatars/";
    
    /**
     * 用户状态
     */
    public static final int USER_STATUS_NORMAL = 0;  // 正常
    public static final int USER_STATUS_DISABLED = 1; // 禁用
    
    /**
     * 在线状态
     */
    public static final int ONLINE_STATUS_OFFLINE = 0;  // 离线
    public static final int ONLINE_STATUS_ONLINE = 1;   // 在线
    public static final int ONLINE_STATUS_GAMING = 2;   // 游戏中
}

